/* Magnific Popup CSS */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #000;
    opacity: 0.7;
    filter: alpha(opacity=70);
    /* &.mfp-ready{ display: none;
          @media screen and (min-width: $screen-sm-min){
              display: block;
          }
      } */
}

.mfp-wrap {
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    z-index: 1043;
    outline: none !important;
    -webkit-backface-visibility: hidden;
    min-height: 100%;
    position: absolute;
    position: fixed !important;
    height: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    /* @media screen and (min-width: $screen-sm){

          height: 100%;
          min-height: 0;
      } */
}

.mfp-wrap * {
    box-sizing: border-box;
}

.mfp-wrap *:before, .mfp-wrap *:after {
    box-sizing: inherit;
}

.mfp-container {
    text-align: center;
    left: 0;
    top: 0;
    padding: 10px;
    position: absolute;
    width: 100%;
    height: 100%;
}

.mfp-container:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
    display: none;
}

.mfp-content {
    height: auto;
    position: relative;
    display: inline-block;
    margin: 0 auto 10px;
    text-align: left;
    z-index: 1045;
    padding: 0;
    vertical-align: middle;
}

.mfp-wrapper {
    padding: 30px 30px 20px;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
    width: 100%;
    cursor: auto;
}

.mfp-ajax-cur {
    cursor: progress;
}

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: zoom-out;
}

.mfp-zoom {
    cursor: pointer;
    cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
    cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mfp-loading.mfp-figure {
    display: none;
}

.mfp-hide {
    display: none !important;
}

.mfp-preloader {
    color: #CCC;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -0.8em;
    left: 8px;
    right: 8px;
    z-index: 1044;
}

.mfp-preloader a {
    color: #CCC;
}

.mfp-preloader a:hover {
    color: #FFF;
}

.mfp-s-ready .mfp-preloader {
    display: none;
}

.mfp-s-error .mfp-content {
    display: none;
}

button.mfp-close {
    display: block;
    padding: 0;
    overflow: visible;
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    outline: none;
    z-index: 1046;
    box-shadow: none;
    text-indent: -9999px;
}

button.mfp-close:before {
    height: 14px;
    top: 50%;
    left: 50%;
    margin-left: -1px;
    margin-top: -7px;
    width: 2px;
    position: absolute;
    background: #d0d0d0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    content: '';
}

button.mfp-close:after {
    width: 14px;
    top: 50%;
    left: 50%;
    margin-left: -7px;
    margin-top: -1px;
    height: 2px;
    position: absolute;
    background: #d0d0d0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    content: '';
}

button.mfp-close:hover:before, button.mfp-close:hover:after {
    background: #2589de;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.mfp-close {
    width: 30px;
    height: 30px;
    padding: 0 0 18px 10px;
    line-height: 26px;
    position: absolute;
    right: 10px;
    top: 10px;
    color: #d0d0d0;
    text-decoration: none;
    text-align: center;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    font-style: normal;
    font-size: 26px;
    font-family: Arial, Baskerville, monospace;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
}

@media screen and (min-width: 768px) {
    .mfp-close {
        right: 20px;
        top: 20px;
    }
}

.mfp-close_small {
    width: 24px;
    height: 24px;
    top: 10px;
    right: 10px;
    line-height: 22px;
}

.mfp-close:hover {
    color: #2589de !important;
    border-color: #2589de;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close,
.mfp-clappr-holder .mfp-close {
    right: 0;
}

@media screen and (min-width: 1025px) {
    .mfp-image-holder .mfp-close,
    .mfp-iframe-holder .mfp-close,
    .mfp-clappr-holder .mfp-close {
        right: -17px;
    }
}

/*.mfp-counter {*/
/*position: absolute;*/
/*top: 0;*/
/*right: 0;*/
/*padding-top: 7px;*/
/*padding-right: 20px;*/
/*padding-bottom: 7px;*/
/*color: #000;*/
/*font-size: 14px;*/
/*line-height: 1.57;*/
/*white-space: nowrap; }*/

.mfp-counter {
    color: #000;
    font-size: 14px;
    line-height: 1.57;
    white-space: nowrap;
}

mfp-bottom-bar__small-cell .mfp-counter {
    margin-top: 7px;
    margin-bottom: 7px;
}


.mfp-arrow {
    width: 30px;
    height: 30px;
    margin: 0;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    position: absolute;
    z-index: 1046;
    top: 50%;
    margin-top: -15px;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    background: transparent !important;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
}

.mfp-arrow:before, .mfp-arrow:after {
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
}

.mfp-arrow:hover, .mfp-arrow:focus {
    opacity: 1;
    filter: alpha(opacity=100);
}

.mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin-top: 35px;
    margin-left: 35px;
    position: absolute;
    left: 0;
    top: 0;
    border: medium inset transparent;
}

.mfp-arrow-left {
    left: 20px;
}

.mfp-arrow-right {
    right: 20px;
}

.mfp-arrow-right:before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid #d0d0d0;
    border-right: 2px solid #d0d0d0;
    border-bottom: 0px none;
    border-left: 0px none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -8px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.mfp-arrow-left:before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid #d0d0d0;
    border-left: 2px solid #d0d0d0;
    border-bottom: 0px none;
    border-right: 0px none;
    position: absolute;
    top: 50%;
    right: 50%;
    margin-top: -6px;
    margin-right: -8px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.mfp-iframe-holder {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px;
}

.mfp-iframe-holder .mfp-close {
    top: 10px;
    right: 10px;
}

@media screen and (min-width: 768px) {
    .mfp-iframe-holder .mfp-close {
        top: -40px;
        right: 0;
        box-shadow: none;
    }
}

.mfp-clappr-holder .mfp-content {
    line-height: 0;
    width: auto;
    max-width: 900px;
}

.mfp-clappr-holder .mfp-close {
    top: -40px;
}

.mfp-iframe-scaler {
    width: 100%;
    height: 100%;
    /*overflow: hidden;*/
    padding-top: 56.25%;
    position: relative;
}

.mfp-iframe-scaler-inner {
    position: relative;
}

@media screen and (min-width: 768px) {
    .mfp-iframe-scaler {
        height: 0;
    }
}

.mfp-iframe-scaler iframe {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000;
}

/* Main image in popup */
img.mfp-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    /* padding: 10px 0; */
    padding: 0;
    margin: 0 auto;
}

/* The shadow behind the image */
.mfp-figure {
    line-height: 0;
    display: inline-table;
    table-layout: fixed;
}

.mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0px;
    bottom: 40px;
    z-index: -1;
    display: block;
    width: auto;
    height: auto;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444;
}

.mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px;
}

.mfp-figure figure {
    margin: 0;
}

.mfp-iframe-container {
    line-height: 0;
    display: inline-table;
    table-layout: fixed;
    width: 100%;
    max-width: 900px;
    position: relative;
}

.mfp-bottom-bar-container {
    display: table;
    table-layout: fixed;
    padding: 0px 10px;
    background: #fff;
}

.mfp-bottom-bar {
    display: table-row;
    width: 100%;
    cursor: auto;
    background: #fff;
    font-size: 14px;
    position: relative;
}

.mfp-bottom-bar__big-cell {
    display: table-cell;
    width: 100%;
    border: 10px solid transparent;
    border-right: 20px solid transparent;
    border-left: 20px solid transparent;
}

.mfp-bottom-bar__small-cell {
    display: table-cell;
    width: 21px;
    border: 10px solid transparent;
    border-right: 20px solid transparent;
    border-left: 20px solid transparent;
}

@media (max-width: 767px) {
    .mfp-bottom-bar__small-cell {
        display: none;
    }
}


.mfp-title {
    display: block;
    text-align: left;
    color: #000;
    font-size: 14px;
    line-height: 20px;
    word-wrap: break-word;
}

.mfp-source {
    display: block;
    margin: 10px 0;
}

.mfp-image-holder .mfp-content {
    max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
    cursor: pointer;
}

.mfp-popup-top {
    display: none;
}

@media (max-width: 767px) {
    .mfp-popup-top {
        display: block;
        padding: 12px 45px 12px 20px;
        background: #fff;
    }
}

/* CONTENTGALLERY */
.mfp-content-gallery.mfp-bg {
    opacity: 0.7;
    filter: alpha(opacity=70);
}

.mfp-content-gallery .mfp-close {
    position: fixed;
    width: 44px;
    height: 44px;
    color: #fff;
    border-color: #fff;
    line-height: 40px;
    font-size: 36px;
    font-weight: 300;
}

.mfp-content-gallery .mfp-close:before {
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -1px;
    margin-top: -8px;
    width: 2px;
    position: absolute;
    background: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    content: '';
}

.mfp-content-gallery .mfp-close:after {
    width: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -1px;
    height: 2px;
    position: absolute;
    background: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    content: '';
}

.mfp-content-gallery .mfp-close:hover {
    border-color: #2589de;
}

.mfp-content-gallery .mfp-close:hover:before, .mfp-content-gallery .mfp-close:hover:after {
    background: #2589de;
}

.mfp-content-gallery .mfp-content {
    vertical-align: middle;
    max-width: 900px;
}

.mfp-content-gallery .mfp-title {
    display: block;
    margin-bottom: 10px;
}

.mfp-content-gallery .mfp-close:hover {
    color: #fff !important;
}

.mfp-content-gallery .mfp-arrow {
    width: 44px;
    height: 44px;
    color: #fff;
    border-color: #fff;
}

.mfp-content-gallery .mfp-arrow:before {
    border-color: #fff;
}

.mfp-content-gallery .mfp-arrow:hover {
    border-color: #2589de;
}

.mfp-content-gallery .mfp-arrow:hover:before, .mfp-content-gallery .mfp-arrow:hover:after {
    border-color: #2589de;
}

@media (max-width: 767px) {
    .mfp-content-gallery .mfp-arrow--visible-xs {
        display: block;
    }

    .mfp-content-gallery .mfp-arrow--hidden-xs {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .mfp-content-gallery .mfp-arrow--visible-tablet {
        display: block;
    }

    .mfp-content-gallery .mfp-arrow--hidden-tablet {
        display: none;
    }
}

@media (min-width: 1025px) {
    .mfp-content-gallery .mfp-arrow--visible-desk {
        display: block;
    }

    .mfp-content-gallery .mfp-arrow--hidden-desk {
        display: none;
    }
}

.mfp-content-gallery .mfp-figure, .mfp-content-gallery .mfp-iframe-container {
    max-width: 900px;
    position: relative;
    padding-top: 45px;
}

@media screen and (min-width: 768px) {
    .mfp-content-gallery .mfp-figure, .mfp-content-gallery .mfp-iframe-container {
        padding-top: 0;
    }
}

.mfp-content-gallery .mfp-popup-top {
    display: block;
    height: 45px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
}

.mfp-content-gallery .mfp-popup-top:before {
    content: "";
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid #ececec;
}

@media screen and (min-width: 768px) {
    .mfp-content-gallery .mfp-popup-top {
        display: none;
    }
}

.mfp-content-gallery .mfp-figure .mfp-close, .mfp-content-gallery .mfp-iframe-scaler .mfp-close {
    display: none;
}

.mfp-content-gallery .mfp-img-container {
    display: table-row;
    position: relative;
}

.mfp-content-gallery .mfp-img-container-inner {
    display: inline-block;
    position: relative;
    line-height: 0;
    vertical-align: top;
}

.mfp-content-gallery .mfp-bottom-bar-container {
    display: table-row;
}

.mfp-content-gallery .mfp-bottom-bar {
    min-height: 36px;
    position: relative;
}

.mfp-content-gallery .mfp-bottom-bar:before, .mfp-content-gallery .mfp-bottom-bar:after {
    content: " ";
    display: table;
}

.mfp-content-gallery .mfp-bottom-bar:after {
    clear: both;
}

.mfp-content-gallery .mfp-source {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.57;
    color: #898989;
}

.mfp-content-gallery .mfp-source:before, .mfp-content-gallery .mfp-source:after {
    content: " ";
    display: table;
}

.mfp-content-gallery .mfp-source:after {
    clear: both;
}

.mfp-content-gallery .mfp-source__link {
    text-decoration: underline;
    color: #898989;
}

.mfp-content-gallery .mfp-source__link:hover {
    text-decoration: none;
}

.mfp-content-gallery .mfp-counter {
    right: 5px;
    top: 14px;
}

.mfp-content-gallery .mfp-title + .mfp-counter {
    top: 3px;
}

.mfp-content-gallery .mfp-source + .mfp-counter {
    top: 3px;
}

.mfp-content-gallery .mfp-line3 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.mfp-content-gallery .mfp-line3:before, .mfp-content-gallery .mfp-line3:after {
    content: " ";
    display: table;
}

.mfp-content-gallery .mfp-line3:after {
    clear: both;
}

.mfp-content-gallery .mfp-share {
    float: left;
    display: block;
    margin-bottom: 10px;
    margin-right: 15px;
    white-space: nowrap;
}

.mfp-content-gallery .mfp-share--no-bottom {
    margin-bottom: 0;
}

.mfp-content-gallery .mfp-full-size {
    display: block;
    float: left;
    position: relative;
    top: -1px;
    line-height: 15px;
    text-decoration: none;
}

.mfp-content-gallery .mfp-full-size__text1 {
    display: block;
    color: #2373c8;
    font-size: 12px;
}

.mfp-content-gallery .mfp-full-size__text2 {
    display: block;
    color: #646464;
    font-size: 11px;
}

.mfp-content-gallery .mfp-full-size:hover .mfp-full-size__text1 {
    text-decoration: underline;
}

.mfp-img-hide-bottom-bar .mfp-bottom-bar {
    display: none;
}

@media screen and (max-width: 1024px) {
    .mfp-content-gallery-mobile .mfp-image-holder {
        padding-left: 0;
        padding-right: 0;
    }

    .mfp-content-gallery-mobile img.mfp-img {
        padding: 0;
    }

    .mfp-content-gallery-mobile .mfp-figure:after {
        top: 0;
        bottom: 0;
    }

    .mfp-content-gallery-mobile .mfp-figure small {
        display: inline;
        margin-left: 5px;
    }

    .mfp-content-gallery-mobile .mfp-bottom-bar {
        background: #fff;
        bottom: 0;
        margin: 0;
        top: auto;
        padding-right: 20px;
    }

    .mfp-content-gallery-mobile .mfp-bottom-bar:empty {
        padding: 0;
    }

    .mfp-content-gallery-mobile .mfp-arrow {
        background: rgba(0, 0, 0, 0.7) !important;
    }

    .mfp-content-gallery-mobile .mfp-figure .mfp-close, .mfp-content-gallery-mobile .mfp-iframe-container .mfp-close {
        display: block;
        position: fixed;
        top: 14px;
        right: 14px;
        background: rgba(0, 0, 0, 0.7) !important;
        text-align: center;
        padding: 0;
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
    }

    .mfp-content-gallery-mobile button.mfp-close {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .mfp-content-gallery-mobile .mfp-title {
        padding-right: 0;
    }

    .mfp-content-gallery-mobile .mfp-counter {
        position: absolute;
        line-height: 45px;
        top: 0;
        left: 20px;
        padding: 0;
    }

    .mfp-content-gallery-mobile .mfp-figure .mfp-close, .mfp-content-gallery-mobile .mfp-iframe-container .mfp-close {
        display: block;
        height: 45px;
        position: absolute;
        top: 0;
        right: 0px;
        background: transparent !important;
        border: 0px none;
        border-left: 1px solid #ececec;
        border-radius: 0;
        text-align: center;
        padding: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    .mfp-content-gallery-mobile .mfp-figure .mfp-close:before, .mfp-content-gallery-mobile .mfp-figure .mfp-close:after, .mfp-content-gallery-mobile .mfp-iframe-container .mfp-close:before, .mfp-content-gallery-mobile .mfp-iframe-container .mfp-close:after {
        background: #a5a5a5;
    }

    .mfp-content-gallery-mobile .mfp-figure .mfp-close:hover:before, .mfp-content-gallery-mobile .mfp-figure .mfp-close:hover:after, .mfp-content-gallery-mobile .mfp-iframe-container .mfp-close:hover:before, .mfp-content-gallery-mobile .mfp-iframe-container .mfp-close:hover:after {
        background: #2589de;
    }

    .mfp-content-gallery-mobile .mfp-arrow {
        background: rgba(0, 0, 0, 0.35) !important;
        border-color: transparent;
    }

    .mfp-content-gallery-mobile .mfp-arrow:hover {
        border-color: transparent;
    }
}

/* CONTENTGALLERY */
/* ФОРМЫ */
.mfp-form__popup {
    max-width: 1045px;
    min-height: 100%;
    background: #fff;
    margin: 0 auto;
    position: relative;
    padding: 10px 20px 20px;
}

@media screen and (min-width: 768px) {
    .mfp-form__popup {
        padding: 30px;
        min-height: 0;
    }
}

/* ФОРМЫ */
/* ТЕСТЫ */
.common__popup {
    max-width: 770px;
    padding: 30px;
    background: #fff;
    margin: 0 auto;
    position: relative;
}

.common__popup__child {
    box-shadow: rgba(0, 0, 0, 0.5) 0 0 5px 0;
    position: absolute;
    width: 572px;
    margin-left: -286px;
    left: 50%;
    bottom: 44px;
    z-index: 200;
    padding: 20px 24px 0 24px;
}

@media screen and (max-width: 767px) {
    .common__popup__child {
        position: fixed;
        margin: 0 !important;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        min-height: 100%;
        margin: 0;
        width: auto;
        z-index: 1000;
        box-shadow: none;
        padding: 20px 20px 6px 20px;
        -webkit-overflow-scrolling: touch;
    }
}

.common__popup.hidden {
    display: none;
}

.common__h2-deco {
    margin-top: -4px;
    font-size: 32px;
    padding-right: 30px;
}

.common__h2-deco__small {
    font-size: 22px;
    margin-bottom: 20px;
}

.common__h2-deco--no-bmargin {
    margin-bottom: 0;
    margin-right: 40px;
}

.common__popup .popup-bottom {
    background: url("../img/popup-bottom.png");
    width: 36px;
    height: 21px;
    left: 0;
    right: 0;
    bottom: -21px;
    margin: auto;
    z-index: 200;
    position: absolute;
}

@media screen and (max-width: 767px) {
    .common__popup .popup-bottom {
        display: none;
    }
}

/* ТЕСТЫ */
/* АНИМАЦИИ */
.mfp-fade-in {
    /* start state */
    /* animate in */
    /* animate out */
}

.mfp-fade-in .mfp-form__popup, .mfp-fade-in .common__popup, .mfp-fade-in .mfp-content {
    opacity: 0;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.mfp-fade-in.mfp-bg {
    opacity: 0;
    -webkit-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}

.mfp-fade-in.mfp-ready .mfp-form__popup, .mfp-fade-in.mfp-ready .common__popup, .mfp-fade-in.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade-in.mfp-ready.mfp-bg {
    opacity: 0.7;
}

.mfp-fade-in.mfp-removing .mfp-form__popup, .mfp-fade-in.mfp-removing .common__popup, .mfp-fade-in.mfp-removing .mfp-content {
    opacity: 0;
}

.mfp-fade-in.mfp-removing.mfp-bg {
    opacity: 0;
}

/* АНИМАЦИИ */
@media all and (max-width: 1024px) {
    .mfp-arrow {
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
    }

    .mfp-arrow-left {
        -webkit-transform-origin: 0;
        transform-origin: 0;
    }

    .mfp-arrow-right {
        -webkit-transform-origin: 100%;
        transform-origin: 100%;
    }

    .mfp-container {
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media screen and (max-width: 768px) {
    .mfp-container {
        padding: 0;
    }

    .mfp-content {
        margin: 0;
    }
}

